package factory.abstractfactory.order;

import factory.factorymethod.pizza.BJCheesePizza;
import factory.factorymethod.pizza.BJPepperPizza;
import factory.tradition.storepizza.Pizza;

/**
 * 北京披萨工厂类
 * @author DFD
 * @date 2023年11月13日
 */
public class BJFactory implements AbstractFactory {

	@Override
	public Pizza createPizza(String orderType) {
		Pizza pizza = null;
		if (orderType.equals("cheese")) {
			pizza = new BJCheesePizza();
		} else if (orderType.equals("pepper")) {
			pizza = new BJPepperPizza();
		}
		return pizza;
	}

}
